package a66weding.com.jiehuntong.fragment.category.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.List;

import a66weding.com.jiehuntong.R;
import a66weding.com.jiehuntong.adapter.MyBaseRecleAdapter;

/**
 * Created by admin on 2016/8/6.
 */
public class MyBusinessAdapter extends MyBaseRecleAdapter {


    public MyBusinessAdapter(Context context, List data) {
        super(context, data);
    }

    ImageView iv;
    TextView tv;
    @Override
    public void findView(View view) {
        iv= (ImageView) view.findViewById(R.id.itme_case_attention);
        tv  = (TextView) view.findViewById(R.id.tv_item_taocan);
    }

    @Override
    public View getView(ViewGroup parent) {
        View v =  LayoutInflater.from(context).inflate(R.layout.item_findshop_shoplist,parent, false);
        return v;
    }


    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position, boolean isItem) {
       tv.setText("ni agnong ");
    }
}
